var express = require("express");
var app = express();

app.use(express.static("static"));

app.get("/", function(req, res) {
    res.send("new data");
});

app.get("/score", function(req, res) {
    var films = [{
            name: "电影1",
            start: 1,
            year: 1997,
        },
        {
            name: "电影2",
            start: 2,
            year: 1997,
        },
        {
            name: "电影3",
            start: 3,
            year: 1997,
        },
    ]
    res.send(films);
});

app.listen(8888);